package com.cheer.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author cheer
 */
@Data
public class MallShopAddDTO {

    @NotBlank(message = "商户名称不能为空")
    @Length(max = 50, message = "商户名称字符数不能超过50")
    private String name;

    @NotBlank(message = "联系人不能为空")
    @Length(max = 50, message = "联系人字符数不能超过50")
    private String contactPerson;

    @NotBlank(message = "联系电话不能为空")
    @Length(max = 50, message = "联系电话字符数不能超过50")
    private String phone;

    @NotNull(message = "经营类型不能为空")
    private Integer type;

}
